<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>线上社区超市登录页面</title>
	<%@include file="/pages/common/head_info.jsp"%>
	<link type="text/css" rel="stylesheet" href="static/css/style.css" >
</head>
<body>
		<div id="login_header">
		</div>

		<div class="login_banner" style="height:auto;">

			<div id="l_content">
				<span class="login_word">欢迎登录</span>
			</div>

			<div id="content">
				<div class="login_form" style="height: auto;">
					<div class="login_box">
						<div class="tit">
							<h1>线上社区超市</h1>
							<a href="pages/user/regist.jsp">立即注册</a>
						</div>
						<div class="msg_cont">
							<b></b>
							<span class="errorMsg">
<%--          <%=request.getAttribute("errMsg") == null ? "请输入你的用户名及密码" : request.getAttribute("errMsg")%>>--%>
           ${empty requestScope.errMsg ?"请输入你的用户名及密码":requestScope.errMsg}
								</span>
						</div>
						<div class="form" >
							<form action="userServlet" method="post">
								<input type="hidden" name="action" value="login"/>
								<label>用户账号：</label>
								<input class="itxt" type="text" placeholder="请输入用户名" autocomplete="off" tabindex="1"
									   name="userId"
<%--								 value=<%= (request.getAttribute("username")==null)? "": request.getAttribute("username") %>/>--%>
<%--									   value=${requestScope.userId}--%>
<%--								/>--%>
								<br/>
								<br/>
								<label>用户密码：</label>
								<input class="itxt" type="password" placeholder="请输入密码" autocomplete="off" tabindex="1"
									   name="userPassword"/>
								<br/>
								<br/>
								<input type="submit" value="登录" id="sub_btn"/>
							</form>
						</div>

					</div>
				</div>
			</div>
		</div>
		<%--	静态包含页脚信息--%>
		<%@include file="/pages/common/footer.jsp"%>
</body>
</html>